#pragma once
#include "CpDibEvent.h"
#include "DefineCol.h"

class CReceiver;
class CFutMstRcvr :
	public CWnd
{
	DECLARE_DYNAMIC(CFutMstRcvr)
public:
	CReceiver* m_pParent;
	CFutMstRcvr(ChartParam& a_Param);
	CFutMstRcvr();
	~CFutMstRcvr();

	void Unsubscribe();
	void Request();
	void Request(string a_Code, long a_SD, long a_ED, char a_RQType, long a_Count, long a_Period);
	void BlockRequest();
	ChartDataList* BlockRequest(ChartParam& a_Param);
	ChartParam Param;
protected:
	ISysDibPtr      m_FutOptChart;
	CCpDibEvent*    m_FutOptChartEvent;

	DECLARE_MESSAGE_MAP()
protected:
	afx_msg LONG OnReceived(WPARAM wParam, LPARAM lParam); // cybos
public:
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
};

